package com.example.fp.cgc.controller

import com.example.fp.cgc.code.logAnno.LogAnno
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import springfox.documentation.swagger2.annotations.EnableSwagger2

/**
 * @author 蔡
 * @since 2019-12-26
 */
@RestController
@EnableSwagger2
open class UserLogController {

    @LogAnno(operateType = "方法名称")
    @GetMapping("/hello")
    open fun hello() = println("外部调用此方法")
//
//    @RequestMapping("/ec")
//    open fun html(): String = "ec"
}